<ui:composition template="/templates/layout.xhtml" xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:c="http://java.sun.com/jstl/core"
     xmlns:fmt="http://java.sun.com/jstl/fmt"
     xmlns:x="http://java.sun.com/jstl/xml"
     xmlns:fn="http://java.sun.com/jstl/functions"
     xmlns:a4j="http://richfaces.org/a4j"
     xmlns:rich="http://richfaces.org/rich"
     xmlns:gape="http://componentes.gape/component/gape">
     
	<ui:define name="titulo">
		<h:outputText value="#{msg.applicationName} - #{msg.titleTelaEditUser}" />
	</ui:define>

	<ui:define name="menu">
		<c:choose>
			<c:when test="${strategy.strategyChosen}">
				<ui:include src="/menu/menuStrategicPlan.xhtml" />					
			</c:when>						
		</c:choose>		
	</ui:define>
	
	<ui:define name="conteudo">
		<h:panelGrid columns="2" footerClass="FormLinhaBotoes" headerClass="pathway" columnClasses="label,field">
				<h:outputText value="#{msg.nameLabel}" />
				<h:inputText id="name" value="#{user.nome}" />
					  				
				<h:outputText value="#{msg.loginLabel}" />
				<h:inputText id="login" value="#{user.login}" />
				
				<h:outputText value="#{msg.newPswdLabel}" />
				<h:inputSecret id="novaSenha" value="#{user.novaSenha}" />
					  				
				<h:outputText value="#{msg.confimPswdLabel}" />
				<h:inputSecret id="confirmaNovaSenha" value="#{user.confirmaNovaSenha}" />	  		
		</h:panelGrid>
		
		<h:panelGrid columns="1" footerClass="FormLinhaBotoes" headerClass="pathway">
 				<rich:listShuttle sourceValue="#{user.listAbleOrgnizations}" sourceListWidth="140" sourceCaptionLabel="#{msg.ableOrganizationsTitle}"
 								  targetValue="#{user.listSelectedOrganizations}" targetListWidth="140" 
 								  targetCaptionLabel="#{msg.selectedOrganizationsTitle}" var="row" listsHeight="150" showButtonLabels="false"
 								  fastOrderControlsVisible="false" orderControlsVisible="false">
 					<rich:column>
 						<h:outputText value="#{user.mapaAbleOrganizations[row].nome}" />
 					</rich:column>
 				</rich:listShuttle>
 			</h:panelGrid>
		
		
		<h:panelGrid columns="1">						
			<rich:messages layout="list" style="color: Red; align: Center; font-size: 15px"/>						
		</h:panelGrid>
	</ui:define>
	
	<ui:define name="menuTela">
		<ui:include src="menu.xhtml" />
	</ui:define>
	
	<ui:define name="menuNavegacaoBack">
		<gape:navigationBack mbean="#{'user'}" metodo="#{'back'}"/>
	</ui:define>

	<ui:define name="menuNavegacaoForward">
		<gape:navigationForward disabled="#{true}"/>
	</ui:define>

	<ui:define name="includePanels"></ui:define>
</ui:composition>